﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Highkick.Dialogs
{
    public partial class Account : Form
    {
        public Account()
        {
            InitializeComponent();
        }

        private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            Krile.Kernel.Bridge.CommonOperation.CallBrowser("http://h.hatena.ne.jp/settings");
        }

        private void okBtn_Click(object sender, EventArgs e)
        {
            Core.Config.Account = new Highkick.Config.Account() { Id = this.id.Text, Password = this.passwd.Text };
        }

        private void Account_Load(object sender, EventArgs e)
        {
            if (Core.Config.Account != null)
                this.id.Text = Core.Config.Account.Id;
        }
    }
}
